package com.diver.flinkdemo.dto.xxt;

import java.io.Serializable;

/**
 * 轨迹信息
 * * Created by Cao Ye on 2018/07/05.
 */
public class TrackInfo implements Serializable {

    private String id;

    //纬度
    private String latitude;

    //经度
    private String longitude;

    //时间戳
    private Long timeStamp;

    //标签
    private String tips;

    // 是否在安全区域 0不在 1在
    private Integer isSafety;
    // 安全区域名称
    private String safetyName;
    //地址
    private String safetyAddress;
    // 常用轨迹标识id
    private String commendId;
    // 定位方式
    private String locateMode;

    private Integer isDanger;

    private String gpsEffective;//gps定位精度

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public Long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(Long timeStamp) {
        this.timeStamp = timeStamp;
    }

    public String getTips() {
        return tips;
    }

    public void setTips(String tips) {
        if ("deviationTrajectory".equals(tips)) {
            this.tips = "轨迹偏离";
        } else if ("longStay".equals(tips)) {
            this.tips = "长时间停留";
        } else {
            this.tips = tips;

        }
    }

    public Integer getIsSafety() {
        return isSafety;
    }

    public void setIsSafety(Integer isSafety) {
        this.isSafety = isSafety;
    }

    public String getSafetyName() {
        return safetyName;
    }

    public void setSafetyName(String safetyName) {
        this.safetyName = safetyName;
    }

    public String getCommendId() {
        return commendId;
    }

    public void setCommendId(String commendId) {
        this.commendId = commendId;
    }


    public String getSafetyAddress() {
        return safetyAddress;
    }

    public void setSafetyAddress(String safetyAddress) {
        this.safetyAddress = safetyAddress;
    }

    public String getLocateMode() {
        return locateMode;
    }

    public void setLocateMode(String locateMode) {
        this.locateMode = locateMode;
    }

    public Integer getIsDanger() {
        return isDanger;
    }

    public void setIsDanger(Integer isDanger) {
        this.isDanger = isDanger;
    }

    public String getGpsEffective() {
        return gpsEffective;
    }

    public void setGpsEffective(String gpsEffective) {
        this.gpsEffective = gpsEffective;
    }
}
